package com.mxf.springcloud.config;

import com.mxf.myrule.MyLBPlush;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : MySelfRule
 * @description : []
 * @createTime : [2022/9/30 10:24]
 * @updateUser : [mxf]
 * @updateTime : [2022/9/30 10:24]
 * @updateRemark : [描述说明本次修改内容]
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myRule() {
        return new RandomRule();// 随机
        //return new MyLBPlush();
    }
}
